#include<bits/stdc++.h>
#include<cmath>
using namespace std;
int main()
{
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    int t;
    cin>>t;
    for(int i=0;i<t;i++)
    {
        int n;
        cin>>n;
        int a[n];
        for(int j=0;i<n;j++) cin>>a[i];
    }
    cout<<1<<endl;
    cout<<0<<endl;
    cout<<8;
    return 0;
}